package com.course.delegate;

import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.formbean.ProfileFormBean;
import com.course.serviceI.ProfileServiceI;
import com.course.serviceImpl.ProfileServiceImpl;
import com.course.util.CoreHash;

public class ProfileMgrDelegate {

	
	ProfileServiceI psi=new ProfileServiceImpl(); 
	
	public boolean changeAccountStatus(String loginid, int status)
	throws LoginException, ConnectionException {
		
		return psi.changeAccountStatus(loginid, status);
	}
	public ProfileFormBean getProfile(String loginname, String path)
	throws DataNotFoundException {
		return psi.getProfile(loginname, path);
	}
	public CoreHash getReportFromTo(String sdate, String edate) throws DataNotFoundException{
		return psi.getReportFromTo(sdate, edate);
	}
	public CoreHash getReportPresent() throws DataNotFoundException {
		return psi.getReportPresent();
		}
	public boolean modifyProfile(ProfileFormBean regbean)
	throws LoginException, ConnectionException {
		return psi.modifyProfile(regbean);
	}
	public boolean registration(ProfileFormBean regbean) throws LoginException,
	ConnectionException {
		return psi.registration(regbean);
	}
}
